/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.losalpes.compras.ws;

import com.losalpes.compras.IComprasService;
import com.losalpes.persistence.entity.Compra;
import com.losalpes.persistence.entity.Mueble;
import java.util.List;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.ejb.Stateless;

/**
 *
 * @author MER
 */
@WebService()
@Stateless()
public class CompraWebService {
    @EJB
    private IComprasService ejbRef;
    // Add business logic below. (Right-click in editor and choose
    // "Web Service > Add Operation"

    @WebMethod(operationName = "registrarCompra")
    public void registrarCompra(@WebParam(name = "compra")
    Compra compra) throws Exception {
        ejbRef.registrarCompra(compra);
    }

}
